#include "F2837xS_device.h"
#include "F28x_Project.h"
#include "math.h"
#include "cla_test.h"

float asin_val[201] = {
		-1.570796327,-1.429256853,-1.370461484,-1.325230809,-1.287002218,-1.253235898,-1.222630306,-1.194412844,-1.168080485,-1.143284062,
		-1.119769515,-1.09734517,-1.0758622,-1.055202321,-1.035269672,-1.015985294,-0.997283222,-0.979107684,-0.961411019,-0.944152115,
		-0.927295218,-0.910808997,-0.894665817,-0.878841152,-0.863313115,-0.848062079,-0.833070358,-0.818321951,-0.803802319,-0.789498209,
		-0.775397497,-0.761489053,-0.747762635,-0.734208787,-0.720818761,-0.707584437,-0.694498266,-0.681553212, -0.668742703,-0.656060591,
		-0.643501109,-0.631058841,-0.618728691,-0.606505855,-0.5943858,-0.582364238,-0.570437109,-0.558600565, -0.546850951,-0.53518479,
		-0.523598776,-0.512089753,-0.500654712,-0.489290778,-0.477995199,-0.466765339,-0.455598673,-0.444492777,-0.43344532,-0.422454062,
		-0.411516846,-0.400631593,-0.389796296,-0.379009021,-0.368267893,-0.357571104,-0.346916898,-0.336303575,-0.325729487,-0.315193032,
		-0.304692654,-0.294226838,-0.283794109,-0.273393031,-0.263022203,-0.252680255,-0.242365851,-0.232077683,-0.22181447,-0.21157496,
		0.201357921,-0.191162147,-0.180986451,-0.170829669,-0.160690653,-0.150568273,-0.140461415,-0.13036898,-0.120289882,-0.11022305,
		0.100167421,-0.090121945,-0.08008558,-0.070057293,-0.060036058,-0.050020857,-0.040010674,-0.030004502,-0.020001334,-0.010000167,
		0,0.010000167,0.020001334,0.030004502,0.040010674,0.050020857,0.060036058,0.070057293,0.08008558,0.090121945,0.100167421,
		0.11022305,0.120289882,0.13036898,0.140461415,0.150568273,0.160690653,0.170829669,0.180986451,0.191162147,0.201357921,
		0.21157496,0.22181447,0.232077683,0.242365851,0.252680255,0.263022203,0.273393031,0.283794109,0.294226838,0.304692654,
		0.315193032,0.325729487,0.336303575,0.346916898,0.357571104,0.368267893,0.379009021,0.389796296,0.400631593,0.411516846,
		0.422454062,0.43344532,0.444492777,0.455598673,0.466765339,0.477995199,0.489290778,0.500654712,0.512089753,0.523598776,
		0.53518479,0.546850951,0.558600565,0.570437109,0.582364238,0.5943858,0.606505855,0.618728691,0.631058841,0.643501109,
		0.656060591,0.668742703,0.681553212,0.694498266,0.707584437,0.720818761,0.734208787,0.747762635,0.761489053,0.775397497,
		0.789498209,0.803802319,0.818321951,0.833070358,0.848062079,0.863313115,0.878841152,0.894665817,0.910808997,0.927295218,
		0.944152115,0.961411019,0.979107684,0.997283222,1.015985294,1.035269672,1.055202321,1.0758622,1.09734517,1.119769515,
		1.143284062,1.168080485,1.194412844,1.222630306,1.253235898,1.287002218,1.325230809,1.370461484,1.429256853,1.570796327
};

float cos_val[201] = {0,0.14106736,0.198997487,0.243104916,0.28,0.3122499,0.341174442,0.367559519,0.391918359,
		0.414608249,0.435889894,0.455960525,0.474973683,0.493051721,0.510294033,0.526782688,0.542586399,0.557763391,0.572363521,
		0.586429876,0.6,0.613106842,0.625779514,0.638043886,0.649923072,0.661437828,0.672606869,0.683447145,0.693974063,0.704201676,
		0.714142843,
		0.723809367,
		0.733212111,
		0.742361098,
		0.751265599,
		0.759934208,
		0.768374908,
		0.776595133,
		0.78460181,
		0.792401413,
		0.8,
		0.807403245,
		0.814616474,
		0.821644692,
		0.828492607,
		0.835164654,
		0.841665017,
		0.847997642,
		0.85416626,
		0.860174401,
		0.866025404,
		0.871722433,
		0.877268488,
		0.882666415,
		0.887918915,
		0.893028555,
		0.897997773,
		0.902828887,
		0.907524104,
		0.912085522,
		0.916515139,
		0.920814857,
		0.924986486,
		0.929031754,
		0.932952303,
		0.9367497,
		0.940425436,
		0.943980932,
		0.947417543,
		0.950736557,
		0.953939201,
		0.957026645,
		0.96,
		0.962860322,
		0.965608616,
		0.968245837,
		0.970772888,
		0.973190629,
		0.975499872,
		0.977701386,
		0.979795897,
		0.98178409,
		0.98366661,
		0.985444062,
		0.987117014,
		0.988685997,
		0.990151504,
		0.991513994,
		0.992773892,
		0.993931587,
		0.994987437,
		0.995941765,
		0.996794864,
		0.997546991,
		0.998198377,
		0.998749218,
		0.99919968,
		0.999549899,
		0.99979998,
		0.999949999,
		1,
		0.999949999,
		0.99979998,
		0.999549899,
		0.99919968,
		0.998749218,
		0.998198377,
		0.997546991,
		0.996794864,
		0.995941765,
		0.994987437,
		0.993931587,
		0.992773892,
		0.991513994,
		0.990151504,
		0.988685997,
		0.987117014,
		0.985444062,
		0.98366661,
		0.98178409,
		0.979795897,
		0.977701386,
		0.975499872,
		0.973190629,
		0.970772888,
		0.968245837,
		0.965608616,
		0.962860322,
		0.96,
		0.957026645,
		0.953939201,
		0.950736557,
		0.947417543,
		0.943980932,
		0.940425436,
		0.9367497,
		0.932952303,
		0.929031754,
		0.924986486,
		0.920814857,
		0.916515139,
		0.912085522,
		0.907524104,
		0.902828887,
		0.897997773,
		0.893028555,
		0.887918915,
		0.882666415,
		0.877268488,
		0.871722433,
		0.866025404,
		0.860174401,
		0.85416626,
		0.847997642,
		0.841665017,
		0.835164654,
		0.828492607,
		0.821644692,
		0.814616474,
		0.807403245,
		0.8,
		0.792401413,
		0.78460181,
		0.776595133,
		0.768374908,
		0.759934208,
		0.751265599,
		0.742361098,
		0.733212111,
		0.723809367,
		0.714142843,
		0.704201676,
		0.693974063,
		0.683447145,
		0.672606869,
		0.661437828,
		0.649923072,
		0.638043886,
		0.625779514,
		0.613106842,
		0.6,
		0.586429876,
		0.572363521,
		0.557763391,
		0.542586399,
		0.526782688,
		0.510294033,
		0.493051721,
		0.474973683,
		0.455960525,
		0.435889894,
		0.414608249,
		0.391918359,
		0.367559519,
		0.341174442,
		0.3122499,
		0.28,
		0.243104916,
		0.198997487,
		0.14106736,
		0

};


